//
//  SocialAddItemCell.m
//  ShowYork
//
//  Created by hxh on 2020/9/27.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "MineCreateOpusPostCell.h"

@interface MineCreateOpusPostCell ()
@property (nonatomic,strong)UIButton *addBtn;
@end

@implementation MineCreateOpusPostCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.addBtn = [[UIButton alloc]init];
        [self.addBtn setBackgroundImage:[UIImage imageNamed:@"social_add_tag"] forState:UIControlStateNormal];
        [self.addBtn setBackgroundImage:[UIImage imageNamed:@"social_add_tag"] forState:UIControlStateHighlighted];
        [self.addBtn addTarget:self action:@selector(addMethod) forControlEvents:UIControlEventTouchUpInside];
        [self.contentView addSubview:self.addBtn];
        [self.addBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.bottom.equalTo(self.contentView);
        }];
    }
    return self;
}

- (void)addMethod{
    if (self.delegate && [self.delegate respondsToSelector:@selector(addVideo)]) {
        [self.delegate addVideo];
    }
}

@end
